#include "EbnReception.h"

CEbnReception::CEbnReception(CEbnWorldState * worldState) : CEbnProposition(worldState, true)
{
}

CEbnReception::~CEbnReception()
{

}

CEbnProposition * CEbnReception::getProposition()
{
    return (CEbnProposition *)this;
}

bool CEbnReception::hasPointToLink(CEbnLink * pLink)
{
    vector<CEbnLink *>::iterator itLink;
    for (itLink = mPointToLinkList.begin(); itLink != mPointToLinkList.end(); itLink++)
    {
        if ((*itLink) == pLink)
        {
            return true;
        }
    }

    return false;
}

void CEbnReception::addPointToLink(CEbnLink * pLink)
{
    bool exist = hasPointToLink(pLink);

    if (exist == false)
    {
        mPointToLinkList.push_back(pLink);
    }
}
